package com.kakarote.hrm.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 招聘启动岗位表
 * </p>
 *
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wk_hrm_recruit_start_position")
@ApiModel(value = "HrmRecruitStartPosition对象", description = "招聘启动岗位表")
public class HrmRecruitStartPosition implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "启动岗位id")
    @TableId(value = "start_position_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long startPositionId;

    @ApiModelProperty(value = "计划编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long planId;

    @ApiModelProperty(value = "记录编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long recordId;

    @ApiModelProperty(value = "岗位编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long positionId;

    @ApiModelProperty(value = "招聘数量")
    private Integer positionNum;

    @ApiModelProperty(value = "岗位职责")
    private String positionDuty;

    @ApiModelProperty(value = "条件要求")
    private String conditionRequire;

    @ApiModelProperty(value = "薪资待遇")
    private String salary;

    @ApiModelProperty(value = "工作地点")
    private String workLocation;

    @ApiModelProperty(value = "联系人")
    private String contactUser;

    @ApiModelProperty(value = "联系电话")
    private String contactPhone;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人id")
    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createUserId;

    @ApiModelProperty(value = "更新人id")
    @TableField(fill = FieldFill.UPDATE)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updateUserId;
}
